home *** CD-ROM | disk | FTP | other *** search
/ FishMarket 1.0 / FishMarket v1.0.iso / fishies / 051-075 / disk_051 / bison / symtab.h < prev    next >
C/C++ Source or Header  |  1992-05-06  |  2KB  |  59 lines

  1. /* Definitions for symtab.c and callers, part of bison,
  2.    copyright (C) 1984 Bob Corbett and Richard Stallman
  3.  
  4.    Permission is granted to anyone to make or distribute verbatim copies of this program
  5.    provided that the copyright notice and this permission notice are preserved;
  6.    and provided that the recipient is not asked to waive or limit his right to
  7.    redistribute copies as permitted by this permission notice;
  8.    and provided that anyone possessing an executable copy
  9.    is granted access to copy the source code, in machine-readable form,
  10.    in some reasonable manner.
  11.  
  12.    Permission is granted to distribute derived works or enhanced versions of
  13.    this program under the above conditions with the additional condition
  14.    that the entire derivative or enhanced work
  15.    must be covered by a permission notice identical to this one.
  16.  
  17.    Anything distributed as part of a package containing portions derived
  18.    from this program, which cannot in current practice perform its function usefully
  19.    in the absense of what was derived directly from this program,
  20.    is to be considered as forming, together with the latter,
  21.    a single work derived from this program,
  22.    which must be entirely covered by a permission notice identical to this one
  23.    in order for distribution of the package to be permitted.
  24.  
  25.  In other words, you are welcome to use, share and improve this program.
  26.  You are forbidden to forbid anyone else to use, share and improve
  27.  what you give them.   Help stamp out software-hoarding!  */
  28.  
  29. #define    TABSIZE    1009
  30.  
  31.  
  32. /*  symbol classes  */
  33.  
  34. #define SUNKNOWN 0
  35. #define STOKEN     1
  36. #define SNTERM     2
  37.  
  38.  
  39. typedef
  40.   struct bucket
  41.     {
  42.       struct bucket *link;
  43.       struct bucket *next;
  44.       char *tag;
  45.       char *type_name;
  46.       short value;
  47.       short prec;
  48.       short assoc;
  49.       short user_token_number;
  50.       char class;
  51.     }
  52.   bucket;
  53.  
  54.  
  55. extern bucket **symtab;
  56. extern bucket *firstsymbol;
  57.  
  58. extern bucket *getsym();
  59.